/**
 * 
 */
package com.ncr.travel.appmgr.model;

import com.ncr.travel.appmgr.model.shared.ColumnSpecification;

/**
 * @author sn185078
 *
 */
public class ColumnSpecificationJson implements ColumnSpecification {

	String columnName;
	String columnValue;
	String columnWidget;
	String columnStyle;

	public ColumnSpecificationJson() {
		super();
	}

	/* (non-Javadoc)
	 * @see com.ncr.travel.appmgr.model.ColumnSpecification#getColumnName()
	 */
	@Override
	public String getColumnName() {
		return columnName;
	}

	/* (non-Javadoc)
	 * @see com.ncr.travel.appmgr.model.ColumnSpecification#setColumnName(java.lang.String)
	 */
	@Override
	public void setColumnName(String columnName) {
		this.columnName = columnName;
	}

	/* (non-Javadoc)
	 * @see com.ncr.travel.appmgr.model.ColumnSpecification#getColumnValue()
	 */
	@Override
	public String getColumnValue() {
		return columnValue;
	}

	/* (non-Javadoc)
	 * @see com.ncr.travel.appmgr.model.ColumnSpecification#setColumnValue(java.lang.String)
	 */
	@Override
	public void setColumnValue(String columnValue) {
		this.columnValue = columnValue;
	}

	/* (non-Javadoc)
	 * @see com.ncr.travel.appmgr.model.ColumnSpecification#getColumnWidget()
	 */
	@Override
	public String getColumnWidget() {
		return columnWidget;
	}

	/* (non-Javadoc)
	 * @see com.ncr.travel.appmgr.model.ColumnSpecification#setColumnWidget(java.lang.String)
	 */
	@Override
	public void setColumnWidget(String columnWidget) {
		this.columnWidget = columnWidget;
	}

	/* (non-Javadoc)
	 * @see com.ncr.travel.appmgr.model.ColumnSpecification#getColumnStyle()
	 */
	@Override
	public String getColumnStyle() {
		return columnStyle;
	}

	/* (non-Javadoc)
	 * @see com.ncr.travel.appmgr.model.ColumnSpecification#setColumnStyle(java.lang.String)
	 */
	@Override
	public void setColumnStyle(String columnStyle) {
		this.columnStyle = columnStyle;
	}

	@Override
	public int hashCode() {
		final int prime = 31;
		int result = 1;
		result = prime * result + ((columnName == null) ? 0 : columnName.hashCode());
		result = prime * result + ((columnStyle == null) ? 0 : columnStyle.hashCode());
		result = prime * result + ((columnValue == null) ? 0 : columnValue.hashCode());
		result = prime * result + ((columnWidget == null) ? 0 : columnWidget.hashCode());
		return result;
	}

	@Override
	public boolean equals(Object obj) {
		if (this == obj)
			return true;
		if (obj == null)
			return false;
		if (getClass() != obj.getClass())
			return false;
		ColumnSpecificationJson other = (ColumnSpecificationJson) obj;
		if (columnName == null) {
			if (other.columnName != null)
				return false;
		} else if (!columnName.equals(other.columnName))
			return false;
		if (columnStyle == null) {
			if (other.columnStyle != null)
				return false;
		} else if (!columnStyle.equals(other.columnStyle))
			return false;
		if (columnValue == null) {
			if (other.columnValue != null)
				return false;
		} else if (!columnValue.equals(other.columnValue))
			return false;
		if (columnWidget == null) {
			if (other.columnWidget != null)
				return false;
		} else if (!columnWidget.equals(other.columnWidget))
			return false;
		return true;
	}

	@Override
	public String toString() {
		return "ColumnSpecificationJson [columnName=" + columnName + ", columnValue=" + columnValue + ", columnWidget=" + columnWidget + ", columnStyle=" + columnStyle + "]";
	}

}
